import request from "@/utils/request";

// 查询企业人员信息列表
export function listComPersonnelInfo(query) {
  return request({
    url: "/basic-api/company/comPersonnelInfo/com/list",
    method: "get",
    params: query,
  });
}

// 查询企业人员信息详细
export function getComPersonnelInfo(id) {
  return request({
    url: "/basic-api/company/comPersonnelInfo/com/" + id,
    method: "get",
  });
}

// 新增企业人员信息
export function addComPersonnelInfo(data) {
  return request({
    url: "/basic-api/company/comPersonnelInfo/com",
    method: "post",
    data: data,
  });
}

// 修改企业人员信息
export function updateComPersonnelInfo(data) {
  return request({
    url: "/basic-api/company/comPersonnelInfo/com",
    method: "put",
    data: data,
  });
}

// 删除企业人员信息
export function delComPersonnelInfo(id) {
  return request({
    url: "/basic-api/company/comPersonnelInfo/com/" + id,
    method: "delete",
  });
}
